﻿<%@ Page Language="C#" MasterPageFile="../MasterPages/Normal.Master" AutoEventWireup="true"
    CodeBehind="Detail.aspx.cs" Inherits="zdzh.zdmgr.UIL.huiqianxieyip.Detail" %>

<asp:Content ID="ContentArea" ContentPlaceHolderID="MainContent" runat="server">
        <style type="text/css">
            .InfoContent li
            {
                min-width: 200px;
                min-height: 30px;
                line-height: 20px;
                margin:5px 0 5px 0;
	            vertical-align: middle;
            }
        </style>
        <div id="ScorllArea">
            <div class="InfoAreaNoBorder" style="min-width: 800px;">
                <div class="PageBar">
                    <a href="Detail.aspx?Index=<%=CurIndex-1 %>">上一条</a>
                    &nbsp;&nbsp;&nbsp;
                    <a href="Detail.aspx?Index=<%=CurIndex+1 %>">下一条</a>
                    &nbsp;&nbsp;&nbsp;
                    <asp:TextBox ID="TxtGoIndex" runat="server" Width="44px"></asp:TextBox>
                    &nbsp;&nbsp;
                    <asp:Button ID="BtnGoIndex" runat="server" Text="Go" Width="38px" 
                        onclick="BtnGoIndex_Click" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <br />
                </div>
            <%-- ---------协议--------- --%>
		        <table class="TableData">
			        <colgroup>
				        <col width="50" />
				        <col width="60" />
				        <col width="60" />
				        <col width="30" />
				        <col width="70" />
				        <col width="120px" />
			        </colgroup>
			        <tr class="TableHeader">
				        <td>协议号</td>
				        <td>补偿</td>
				        <td>差价</td>
				        <td>搬家天数</td>
				        <td>签订日期</td>
				        <td>操作</td>
			        </tr>
			        <tr class="TableRow">
				        <td><%=huiqianxieyi.Xieyihao%></td>
				        <td><%=huiqianxieyi.Buchang%></td>
				        <td><%=huiqianxieyi.Chajia%></td>
				        <td><%=huiqianxieyi.Banjiatianshu%> 天</td>
				        <td><%=huiqianxieyi.Qiandingriqi%></td>
				        <td align="center">
					        <input class="BtnModify" type="button" onclick="location='Modify.aspx?Index=<%=huiqianxieyi.Index%>'"/>
				        </td>
			        </tr>
		        </table>
                <ul>
                	<li style="width: 20px; text-indent:5px; height: 20px;"></li>
                </ul>
            <%-- ---------回迁户--------- --%>
		        <table class="TableData">
			        <colgroup>
				        <col width="100" />
				        <col width="100" />
			        </colgroup>
			        <tr class="TableHeader">
				        <td>产权人</td>
				        <td>
			                <input class="Button" type="button" value="添加" onclick="location='../huiqianhup/Create.aspx?Xieyihao=<%=huiqianxieyi.Xieyihao %>'"/>
                        </td>
			        </tr>
			        <asp:Repeater ID="RepGridHuiqianhu" runat="server" EnableViewState="true">
			        <ItemTemplate>
			            <tr class="TableRow">
				            <td title="<%#Eval("Beizhu") %>">
                                <%#Eval("Xingming") %>
                            </td>
                            <td>
					            <input class="BtnModify" type="button" onclick="location='../huiqianhup/Modify.aspx?Index=<%#Eval("Index")%>'"/>
					            <input class="BtnDelete" type="button" onclick="location='../huiqianhup/Delete.aspx?Index=<%#Eval("Index")%>'"/>
				            </td>
                        </tr>
			        </ItemTemplate>
			        </asp:Repeater>
		        </table>
                <ul>
                	<li style="width: 20px; text-indent:5px; height: 20px;"></li>
                </ul>
            <%-- ---------电话--------- --%>
		        <table class="TableData">
			        <colgroup>
				        <col width="100" />
				        <col width="100" />
			        </colgroup>
			        <tr class="TableHeader">
				        <td>联系电话</td>
				        <td>
			                <input class="Button" type="button" value="添加" onclick="location='../huiqiandianhuap/Create.aspx?Xieyihao=<%=huiqianxieyi.Xieyihao %>'"/>
                        </td>
			        </tr>
			        <asp:Repeater ID="RepGridDianhua" runat="server" EnableViewState="true">
			        <ItemTemplate>
			            <tr class="TableRow">
				            <td>
                                <%#Eval("Dianhua") %>
                            </td>
                            <td>
					            <input class="BtnModify" type="button" onclick="location='../huiqiandianhuap/Modify.aspx?Index=<%#Eval("Index")%>'"/>
					            <input class="BtnDelete" type="button" onclick="location='../huiqiandianhuap/Delete.aspx?Index=<%#Eval("Index")%>'"/>
				            </td>
                        </tr>
			        </ItemTemplate>
			        </asp:Repeater>
		        </table>
                <ul>
                	<li style="width: 20px; text-indent:5px; height: 20px;"></li>
                </ul>
            <%-- ---------房照--------- --%>
		        <table class="TableData">
			        <colgroup>
				        <col width="100" />
				        <col width="100" />
			        </colgroup>
			        <tr class="TableHeader">
                        <td>拆迁房照</td>
				        <td>
			                <input class="Button" type="button" value="添加" onclick="location='../huiqianfangzhaop/Create.aspx?Xieyihao=<%=huiqianxieyi.Xieyihao %>'"/>
                        </td>
			        </tr>
		        </table>
		        <table class="TableData">
			        <colgroup>
				        <col width="100" />
				        <col width="100" />
				        <col width="100" />
				        <col width="100" />
				        <col width="100" />
				        <col width="90px" />
			        </colgroup>
			        <tr class="TableRow">
				        <td>产权人</td>
				        <td>评估号</td>
				        <td>房照号</td>
				        <td>栋号</td>
				        <td>面积</td>
				        <td>操作</td>
			        </tr>
			        <asp:Repeater ID="RepGridFangzhao" runat="server" EnableViewState="true">
			        <ItemTemplate>
			        <tr class="TableRow">
				        <td><%#Eval("Chanquanren")%></td>
				        <td><%#Eval("Pingguhao")%></td>
				        <td><%#Eval("Fangzhaohao")%></td>
				        <td><%#Eval("Donghao")%></td>
				        <td><%#Eval("Mianji")%></td>
				        <td align="center">
					        <input class="BtnModify" type="button" onclick="location='../huiqianfangzhaop/Modify.aspx?Index=<%#Eval("Index")%>'"/>
					        <input class="BtnDelete" type="button" onclick="location='../huiqianfangzhaop/Delete.aspx?Index=<%#Eval("Index")%>'"/>
				        </td>
			        </tr>
			        </ItemTemplate>
			        </asp:Repeater>
		        </table>
                <ul>
                	<li style="width: 20px; text-indent:5px; height: 20px;"></li>
                </ul>
            <%-- ---------房源--------- --%>
		        <table class="TableData">
			        <colgroup>
				        <col width="100px" />
				        <col width="400px" />
				        <col width="90px" />
			        </colgroup>
			        <tr class="TableHeader">
                        <td>回迁房源</td>
				        <td>
                            <asp:Label ID="Label1" runat="server" Text="类型：">
                            </asp:Label><asp:DropDownList ID="DdlType" runat="server" AutoPostBack="True" 
                                onselectedindexchanged="DdlType_SelectedIndexChanged">
                                <asp:ListItem>---</asp:ListItem>
                                <asp:ListItem>多层</asp:ListItem>
                                <asp:ListItem>车库</asp:ListItem>
                                <asp:ListItem>商服</asp:ListItem>
                                <asp:ListItem>阁楼</asp:ListItem>
                                <asp:ListItem>高层</asp:ListItem>
                            </asp:DropDownList>
                            <asp:Label ID="LblBuild" runat="server" Text="楼号："></asp:Label>
                            <asp:DropDownList ID="DdlBuild" runat="server" onselectedindexchanged="DdlBuild_SelectedIndexChanged" AutoPostBack="True"></asp:DropDownList>
                            <asp:Label ID="LblUnit" runat="server" Text="单元："></asp:Label>
                            <asp:DropDownList ID="DdlUnit" runat="server" AutoPostBack="True" onselectedindexchanged="DdlUnit_SelectedIndexChanged"></asp:DropDownList>
                            <asp:Label ID="LblRoom" runat="server" Text="房间："></asp:Label>
                            <asp:DropDownList ID="DdlRoom" runat="server" AutoPostBack="True" 
                                onselectedindexchanged="DdlRoom_SelectedIndexChanged"></asp:DropDownList>
                            <asp:Label ID="Label2" runat="server" Text="门"></asp:Label>
                            <asp:Label ID="Label3" runat="server" Text=" 面积（设计／测绘）:"></asp:Label>
                            <asp:Label ID="LblArea" runat="server" Text=""></asp:Label>
                        </td>
                        <td>
                            <asp:Button ID="BtnAddFangyuan" runat="server" Text="添加" CssClass="Button" onclick="BtnAddFangyuan_Click"/>
                        </td>
			        </tr>
		        </table>
		        <table class="TableData">
			        <colgroup>
				        <col width="100" />
				        <col width="100" />
				        <col width="100" />
				        <col width="100" />
				        <col width="100" />
				        <col width="90px" />
			        </colgroup>
			        <tr class="TableRow">
				        <td>索引</td>
				        <td>楼号</td>
				        <td>类型</td>
				        <td>设计面积</td>
				        <td>测绘面积</td>
				        <td>操作</td>
			        </tr>
			        <asp:Repeater ID="RepGridFangyuan" runat="server" EnableViewState="true" onitemcommand="RepGridFangyuan_ItemCommand">
			        <ItemTemplate>
			        <tr class="TableRow">
				        <td><%#Eval("Index")%></td>
				        <td><a href="../fangyuanp/Detail.aspx?Index=<%#Eval("Index")%>"><%#cs_showbuild( Eval("Build"), Eval("Unit") , Eval("Floor") , Eval("Room"))%></a></td>
				        <td><%#Eval("Type")%></td>
				        <td><%#Eval("DesignArea")%></td>
				        <td><%#Eval("Area")%></td>
				        <td>
                            <asp:Button ID="BtnDelFangyuan" runat="server" Text="" CssClass="BtnDelete"  CommandName="BtnDelFangyua" CommandArgument='<%#Eval("Index")%>' OnClientClick="return confirm('确认要移除此用户房源吗？')"/>
				        </td>
			        </tr>
			        </ItemTemplate>
			        </asp:Repeater>
		        </table>
            </div>
        </div>

        <div id="Footer">
            <div class="ButtonArea">
                <input class="Button" onclick="location='Default.aspx'" type="button" value="返回" />
            </div>
        </div>
        <script language="javascript" type="text/javascript">
            //页面载入完成后，将第一个编辑控件设为选中状态。
            document.getElementById("<%=TxtGoIndex.ClientID%>").focus();
        </script>
</asp:Content>
